{extend name="Base:base" /}
{block name="title"}
我的购物车
{/block}
{block name="resources"}
    {load href="/static/css/index/cart.css"}
    {load href="/static/css/index/cart2.css"}
    {load href="/static/js/index/cart.js"}
{/block}
{block name="content"}
<div class="cart common-width clearfix">
    <div class="cart-head" >
        <div class="column fl title-checkbox"><input type="checkbox" class="check-all check" />全选</div>
        <div class="column fl title-goods">商品</div>
        <div class="column fl title-type"></div>
        <div class="column fl title-price">单价</div>
        <div class="column fl title-num">数量</div>
        <div class="column fl title-sum">小计</div>
        <div class="column fl title-action">操作</div>
    </div>
    <div class="cart-main">
        <div class="product-info clearfix">
            <div class="fl product-checkbox"><input class="check-one check" type="checkbox" gId="112" /></div>
            <div class="fl product-goods">
                <div class="item-img">
                    <a href=""><img src="/uploads/picture/goods/1881bb9f44bd1bbad25a9085b1aaa3d5.jpg"></a>
                </div>
                <div class="item-msg">
                    <div class="item-name">32313323133231332313323133231332313323133231332313323133231332313323133231332313</div>
                </div>
            </div>
            <div class="fl product-type">颜色：蓝色<br>尺寸：13.3</div>
            <div class="fl product-price">￥<span>5899</span></div>
            <div class="fl product-num"><span class="num-reduce"></span><input class="num-input" type="text" value="1"/><span class="num-add">+</span></div>
            <div class="fl product-sum">￥<span>5899</span></div>
            <div class="fl product-action"><a class="delete-one" href="javascript:;">删除</a></div>
        </div>


        <div class="product-info clearfix">
            <div class="fl product-checkbox"><input class="check-one check" type="checkbox" gId="221"/></div>
            <div class="fl product-goods">
                <div class="item-img">
                    <a href=""><img src=""></a>
                </div>
                <div class="item-msg">
                    <div class="item-name">32313323133231332313323133231332313323133231332313323133231332313323133231332313</div>
                </div>
            </div>
            <div class="fl product-type">颜色：蓝色<br>尺寸：13.3</div>
            <div class="fl product-price">￥<span>1231</span></div>
            <div class="fl product-num"><span class="num-reduce"></span><input class="num-input" type="text" value="1"/><span class="num-add">+</span></div>
            <div class="fl product-sum">￥<span>1231</span></div>
            <div class="fl product-action"><a class="delete-one" href="javascript:;">删除</a></div>
        </div>
    </div>

    <div class="cart-foot" id="cart-foot">
        <label class="fl select-all"><input type="checkbox" class="check-all check"/>&nbsp;全选</label>
        <a class="fl delete" id="deleteAll" href="javascript:void(0);" url="{:url('admin/cart/deleteAll')}">删除</a>
        <div class="fr closing" id="closing">结&nbsp;算</div>
        <div class="fr total">合计：￥<span id="priceTotal">0.00</span></div>
        <div class="fr selected" id="selected">已选商品<span id="selectedTotal">0</span>件<span class="arrow up">︽</span><span class="arrow down">︾</span></div>
        <div class="selected-view">
            <div id="selectedViewList" class="clearfix">
                <div><img src="images/1.jpg"><span>取消选择</span></div>
            </div>
            <span class="arrow">◆<span>◆</span></span>
        </div>
    </div>
</div>

<form id="form" method="post" action="{:url('/index/trade')}" style="display: none;">
    <input id="formStr" type="text" name="info" value="pSn,num;pSn,num;"><!-- 使用json字符串更合理 -->
    <input type="submit" value="提交">
</form>
{/block}